
<div ng-include="sys_html('common/head')"></div>
    <div class="g-flexview pages" id="settlement" style="height:auto;">
        <!--头部导航-->
        <header class="m-navbar">
            <a ng-click="access_json('/my/')" class="navbar-item">
                <i class="back-ico"></i>
            </a>
            <div class="navbar-center">
               
            </div>
        </header>
        <!--滚动区域-->
        <div class="g-scrollview">
            <div class="m-tab" >

                <div class="tab-panel">
                    <!--结算兑换-->
                    <div class="tab-panel-item tab-active">
                        <div class="conversion-list-box" id="list">
                            <!--记录-->
                          
                            <div ng-repeat="li in pagetda.list" class="conversion-list">
                                <div class="leftinfor">
                                    <div class="leftinfor-img">
                                        <img src="../addons/jy_jdk/custom/templates/mobile/img/dui.png" alt="">
                                    </div>
                                    <div class="leftinfor-num">
                                        <div class="subsidenum">
                                        <span ng-if="li.type==1"  >  积分 </span> 
										<span ng-if="li.type==2"  >  佣金 </span>
										<span ng-if="li.type==3"  >  补贴 </span>
										
                                            <span>
                                                ￥{{li.money}}
                                            
                                        </div>
                                        <p style="color:#767373;">{{li.remark}}</p>
                                        <div class="time">
                                            <span>
                                               {{li.createtime}}
                                            </span>
                                        </div>
                                    </div>
                                </div>
                                <div class="rightinfor">
                                    <div class="state">
                                       {{li.status}}
                                    </div>
                                </div>
                            </div>
                            



                        </div>
                    </div>
</div>
                <div id="nodata" class="" ng-if="pagedata.list==''" style="height: 20px"><div class="dropload-load" style="line-height: 10px">没有更多明细了</div></div>
                    <!--结算记录-->
                    <div  class="tab-panel-item">
                        <div ng-repeat="li in pagedata.list" class="conversion-list-box">
                            <!--记录-->
                            
                            <div class="conversion-list">
                                <div class="leftinfor">
                                    <div class="leftinfor-img">
                                        <img src="../addons/jy_jdk/custom/templates/mobile/img/dui.png" alt="">
                                    </div>
                                    <div class="leftinfor-num">
                                        <div class="subsidenum">提现金额：
                                            <span>
                                              ￥{{li.money || 0.00}}
                                            </span>
                                        </div>
                                        <div class="time">
                                            <span>
                                                {{li.createtime}}
                                            </span>
                                        </div>
                                    </div>
                                </div>
                                <div class="rightinfor">
                                    <div class="state">
                                         {{li.status}}
                                    </div>
                                </div>
                            </div>
                           



                        </div>
                      
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript">
    //var posturl = "{php echo url('entry',array('m'=>'nets_haojk','do'=>'log','ajax'=>'1','type'=>$_GPC['type']))}";

    var param = new Object();
    param.page = 1;
    param.islock=true;
    //取窗口可视范围的高度 
    function getClientHeight() {
        var clientHeight = 0;
        if (document.body.clientHeight && document.documentElement.clientHeight) {
            var clientHeight = (document.body.clientHeight < document.documentElement.clientHeight) ? document.body.clientHeight : document.documentElement.clientHeight;
        } else {
            var clientHeight = (document.body.clientHeight > document.documentElement.clientHeight) ? document.body.clientHeight : document.documentElement.clientHeight;
        }
        return clientHeight;
    }
    //取窗口滚动条高度 
    function getScrollTop() {
        var scrollTop = 0;
        if (document.documentElement && document.documentElement.scrollTop) {
            scrollTop = document.documentElement.scrollTop;
        } else if (document.body) {
            scrollTop = document.body.scrollTop;
        }
        return scrollTop;
    }
    //取文档内容实际高度 
    function getScrollHeight() {
        return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
    }
    $(window).scroll(function () {
        var h = $(this).scrollTop();
        console.log(h);

        var height = getClientHeight();
        var theight = getScrollTop();
        var rheight = getScrollHeight();
        var bheight = rheight - theight - height;
        if (bheight < 100 && param.islock) {
            param.islock = false;
            getlist();
        }
        console.log(bheight);
    });
  
</script>
